package com.zzh.ideas.web.config;

import com.zzh.ideas.web.controller.TestController;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * description： <br>
 * createTime: 2019/6/2615:05 <br>
 *
 * @author zzh
 */

@Configuration
public class TestConfiguration implements WebMvcConfigurer {
    /**
     * 配置静态访问资源
     * @param registry
     */
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        TestController.registry = registry;
    }
}
